Skip to content

refactor: add radio and checkbox component#1476

Draft
essenmitsosse wants to merge 16 commits intonpmx-dev:mainfrom
essenmitsosse:replace-buttons-links
Draft

refactor: add radio and checkbox component#1476
essenmitsosse wants to merge 16 commits intonpmx-dev:mainfrom
essenmitsosse:replace-buttons-links

Conversation

@essenmitsosse
Copy link
Contributor

This adds a button and checkbox component and replaces all things I could find that were button before but should be a radio or checkbox. It doesn't touch the SettingsToggle component, which is also a checkbox.

The radio button also replaces the previous TagRadioButton

For the checkboxes I added a variant, that looks like a toggable button. For the radio buttons I didn't. I am going to leave this PR as a draft, because I am sure there is some discussion to be had.

The goal of this PR should be to move all things that should be radio/checkboxes to an abstract component. I don't think these components need to be functionally or visually perfect just now. Having only one place to maintain them should be a benefit in itself. So I think we should try not to get lost in detailed "how round should the focus be" discussions. I also think surfacing that something is a radio/checkbox in the UI by actually displaying it can be good intermediate step to make everybody think more consciously about UX dicisions. What I mean by that: 'Maybe if too many radio buttons look to crowded, the problem is not showing them, but having so many of them' — maybe.

Screenshot 2026-02-13 at 20 26 14 Screenshot 2026-02-13 at 20 30 48

Screenshot 2026-02-13 at 20 30 23 Screenshot 2026-02-13 at 20 37 06

@vercel
Copy link

vercel bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 13, 2026 7:39pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 13, 2026 7:39pm
npmx-lunaria Ignored Ignored Feb 13, 2026 7:39pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant